import java.util.Set;
import java.util.TreeSet;


public class TreeSetTest {
	public static void main(String[] args) {
		Set<ComparableTest> set = new TreeSet<>();
		ComparableTest ct1 = new ComparableTest();
		ct1.setS1("abc");
		ct1.setS2("abc");
		ComparableTest ct2 = new ComparableTest();
		ct1.setS1("abc");
		ct1.setS2("bcd");
		ComparableTest ct3 = new ComparableTest();
		ct1.setS1("abc");
		ct1.setS2("cde");
		set.add(ct1);
		set.add(ct2);
		set.add(ct3);
		System.out.println(set);
	}
}
